import re

from util.useragent import UserAgent
from curl_cffi import requests

ua = UserAgent()
url = 'https://tieba.baidu.com/t/f/?class=college'
headers = {
    'User-Agent': ua.random
}


response = requests.get(url, impersonate="chrome100")
items = re.findall('<a class="each_topic_entrance_item" href="(.*?)" data-fid=".*?">(.*?)</a>', response.text, re.S)
for item in items:
    print(item)